package com.itheima.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itheima.pojo.Code;
import com.itheima.pojo.Result;
import com.itheima.service.impl.DishServiceImpl;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Log4j2
@RestController
@RequestMapping("/dish")
public class DishController {

    @Autowired
    private DishServiceImpl dishServiceImpl;


    /**
     * 移动端菜品列表
     * @param
     * @param status
     * @return
     */
    @GetMapping("/list")
    public Result checkAll(String categoryId,String status){
        return dishServiceImpl.checkAll(categoryId,status);

    }


}
